package ua.maxicash.dao;

import ua.maxicash.vo.JobType;
import ua.maxicash.vo.Worker;

import java.util.List;

public interface WorkerDao {

    public void addWorker(Worker worker);

    public void updateWorker(Worker worker);
  
    public void saveOrUpdateWorker(Worker worker);
    
    public List<Worker> listWorker();

    public Worker getWorkerByEmail(String email);

    public Worker getWorkerById(Long idWorker);

    public boolean emailIsFree(String email);

    public Worker updatePassword(String email, String password);

    public void saveWorkerWithJobType(Worker worker, JobType jobType);
}
